<template>
	<view class="">
	<scroll-view scroll-y="true" style="width: 100%;height: 100%;">
		<rich-text :nodes="intro"></rich-text>
	</scroll-view>	
	</view>
</template>

<script>
	let app = ""
	export default{
		data(){
			return{
				role: 0,
				windowHeight: 0,
				intro:'',
				targetUrl:''
			}
		},
		onLoad(options) {
			let _this = this
			app = getApp()
			_this.role = app.globalData.role
			_this.targetUrl = options.targetUrl
			_this.aboutUs()
		},
		methods:{
			async aboutUs(){
				let _this = this
				    const res = await this.$myRequest({
				     url: '/admin/news/' + this.targetUrl,
				     method: 'GET',
				    })
				    console.log('返回结果', res)
				   if(res.data.code==200){
				   	_this.intro = res.data.data.intro
				   	
				   }
			},
		}
		
	}
</script>

<style>
</style>